import Vue from 'vue'
import VueRouter from 'vue-router'
import { routes as ariticle } from './module/article/router'
import { routes as user } from './module/user/router'
import { routes as game } from './module/game/router'

Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    ...ariticle,
    ...user,
    ...game,
    {
      path: '/',
      redirect: '/article/list'
    }
  ]
})
